package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-23
 */
@TableName("nb_gpc_detail")
public class GpcDetail extends Model<GpcDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("g_scode")
    private String gScode;
    @TableField("g_price")
    private Double gPrice;
    @TableField("g_rate")
    private Double gRate;
    @TableField("g_ratio")
    private Double gRatio;
    @TableField("g_buy")
    private Double gBuy;
    @TableField("g_sell")
    private Double gSell;
    @TableField("g_zlje")
    private Double gZlje;
    @TableField("g_date")
    private Date gDate;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getgScode() {
        return gScode;
    }

    public void setgScode(String gScode) {
        this.gScode = gScode;
    }

    public Double getgPrice() {
        return gPrice;
    }

    public void setgPrice(Double gPrice) {
        this.gPrice = gPrice;
    }

    public Double getgRate() {
        return gRate;
    }

    public void setgRate(Double gRate) {
        this.gRate = gRate;
    }

    public Double getgRatio() {
        return gRatio;
    }

    public void setgRatio(Double gRatio) {
        this.gRatio = gRatio;
    }

    public Double getgBuy() {
        return gBuy;
    }

    public void setgBuy(Double gBuy) {
        this.gBuy = gBuy;
    }

    public Double getgSell() {
        return gSell;
    }

    public void setgSell(Double gSell) {
        this.gSell = gSell;
    }

    public Double getgZlje() {
        return gZlje;
    }

    public void setgZlje(Double gZlje) {
        this.gZlje = gZlje;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    public Date getgDate() {
		return gDate;
	}

	public void setgDate(Date gDate) {
		this.gDate = gDate;
	}

	@Override
    public String toString() {
        return "GpcDetail{" +
        "id=" + id +
        ", gScode=" + gScode +
        ", gPrice=" + gPrice +
        ", gRate=" + gRate +
        ", gRatio=" + gRatio +
        ", gBuy=" + gBuy +
        ", gSell=" + gSell +
        ", gZlje=" + gZlje +
        "}";
    }
}
